package com.study.test.demo.proxy.jdkdynamiproxy;

/**
 * 顾客
 *
 * @Author hupengming
 * @ClassName Customer
 * @Date 2023-03-09  16:30
 * @Version 1.0
 */
public class Customer implements Restaurant{

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Customer(String name){
        this.name = name;
    }

    @Override
    public void order(String dishName) {
        System.out.println("有新订单！菜名：" + dishName + " 顾客：" + this.name);
    }
}
